<!-- HTML header for doxygen 1.8.20-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
	<meta http-equiv="X-UA-Compatible" content="IE=9"/>
	<meta name="generator" content="Doxygen 1.9.4"/>
	<meta name="viewport" content="width=device-width, initial-scale=1"/>
	<title>Raspberry Pi Pico SDK: include/hardware/i2c.h File Reference</title>
	<!-- <link href="tabs.css" rel="stylesheet" type="text/css"/> -->
	<script type="text/javascript" src="jquery.js"></script>
	<script type="text/javascript" src="dynsections.js"></script>
	<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
	<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
    <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&display=swap" rel="stylesheet">
	<link href="doxygen.css" rel="stylesheet" type="text/css" />
	<link href="normalise.css" rel="stylesheet" type="text/css"/>
<link href="main.css" rel="stylesheet" type="text/css"/>
<link href="styles.css" rel="stylesheet" type="text/css"/>
</head>
<body>
	<div class="navigation-mobile">
		<div class="logo--mobile">
			<a href="/"><img src="logo-mobile.svg" alt="Raspberry Pi"></a>
		</div>
		<div class="navigation-toggle">
			<span class="line-1"></span>
			<span class="line-2">
				<p>Menu Toggle</p>
			</span>
			<span class="line-3"></span>
		</div>
	</div>
	<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
		<div class="logo">
			<a href="index.html"> <img src="logo.svg" alt="Raspberry Pi"></a>
			<span style="display: inline-block; margin-top: 10px;">
				v2.0.0
			</span>
		</div>
		<div class="navigation-footer">
			<img src="logo-mobile.svg" alt="Raspberry Pi">
			<a href="https://www.raspberrypi.com/" target="_blank">By Raspberry Pi Ltd</a>
		</div>
<!-- 		<div class="search">
			<form>
				<input type="search" name="search" id="search" placeholder="Search">
				<input type="submit" value="Search">
			</form>
		</div> -->
<!-- Generated by Doxygen 1.9.4 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search",'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('rp2__common_2hardware__i2c_2include_2hardware_2i2c_8h.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#nested-classes">Data Structures</a> &#124;
<a href="#define-members">Macros</a> &#124;
<a href="#typedef-members">Typedefs</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle"><div class="title">i2c.h File Reference</div></div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &quot;<a class="el" href="pico_8h_source.html">pico.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="common_2pico__time_2include_2pico_2time_8h_source.html">pico/time.h</a>&quot;</code><br />
<code>#include &quot;hardware/structs/i2c.h&quot;</code><br />
<code>#include &quot;hardware/regs/dreq.h&quot;</code><br />
</div><div class="textblock"><div class="dynheader">
Include dependency graph for i2c.h:</div>
<div class="dyncontent">
<div class="center"><img src="rp2__common_2hardware__i2c_2include_2hardware_2i2c_8h__incl.png" border="0" usemap="#ainclude_2hardware_2i2c_8h" alt=""/></div>
<map name="ainclude_2hardware_2i2c_8h" id="ainclude_2hardware_2i2c_8h">
<area shape="rect" title=" " alt="" coords="511,5,680,32"/>
<area shape="rect" href="pico_8h.html" title=" " alt="" coords="411,229,473,256"/>
<area shape="rect" href="common_2pico__time_2include_2pico_2time_8h.html" title=" " alt="" coords="471,80,565,107"/>
<area shape="rect" title=" " alt="" coords="589,80,756,107"/>
<area shape="rect" title=" " alt="" coords="781,80,941,107"/>
<area shape="rect" href="common_2pico__base__headers_2include_2pico_2types_8h_source.html" title=" " alt="" coords="158,453,259,480"/>
<area shape="rect" title=" " alt="" coords="252,304,365,331"/>
<area shape="rect" href="common_2pico__base__headers_2include_2pico_2config_8h_source.html" title=" " alt="" coords="390,304,494,331"/>
<area shape="rect" href="platform_8h.html" title=" " alt="" coords="596,304,717,331"/>
<area shape="rect" href="error_8h_source.html" title=" " alt="" coords="741,304,836,331"/>
<area shape="rect" href="assert_8h_source.html" title=" " alt="" coords="5,528,111,555"/>
<area shape="rect" title=" " alt="" coords="74,603,157,629"/>
<area shape="rect" title=" " alt="" coords="211,528,281,555"/>
<area shape="rect" title=" " alt="" coords="306,528,381,555"/>
<area shape="rect" title=" " alt="" coords="173,379,337,405"/>
<area shape="rect" href="compiler_8h_source.html" title=" " alt="" coords="362,379,543,405"/>
<area shape="rect" href="sections_8h_source.html" title=" " alt="" coords="567,379,746,405"/>
<area shape="rect" href="panic_8h_source.html" title=" " alt="" coords="770,379,930,405"/>
<area shape="rect" title=" " alt="" coords="954,379,1165,405"/>
<area shape="rect" title=" " alt="" coords="1189,379,1340,405"/>
<area shape="rect" title=" " alt="" coords="357,453,548,480"/>
<area shape="rect" href="rp2__common_2hardware__timer_2include_2hardware_2timer_8h.html" title=" " alt="" coords="521,155,654,181"/>
<area shape="rect" title=" " alt="" coords="497,229,678,256"/>
<area shape="rect" title=" " alt="" coords="703,229,872,256"/>
</map>
</div>
</div><div class="textblock"><div class="dynheader">
This graph shows which files directly or indirectly include this file:</div>
<div class="dyncontent">
<div class="center"><img src="rp2__common_2hardware__i2c_2include_2hardware_2i2c_8h__dep__incl.png" border="0" usemap="#ainclude_2hardware_2i2c_8hdep" alt=""/></div>
<map name="ainclude_2hardware_2i2c_8hdep" id="ainclude_2hardware_2i2c_8hdep">
<area shape="rect" title=" " alt="" coords="9,5,179,32"/>
<area shape="rect" href="i2c__slave_8h.html" title=" " alt="" coords="5,80,183,107"/>
</map>
</div>
</div>
<p><a href="rp2__common_2hardware__i2c_2include_2hardware_2i2c_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="nested-classes" name="nested-classes"></a>
Data Structures</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structi2c__inst.html">i2c_inst</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="define-members" name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:a0eec00c1c43648dc914b4fb726d5bcc5"><td class="memItemLeft" align="right" valign="top"><a id="a0eec00c1c43648dc914b4fb726d5bcc5" name="a0eec00c1c43648dc914b4fb726d5bcc5"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>PARAM_ASSERTIONS_ENABLED_HARDWARE_I2C</b>&#160;&#160;&#160;0</td></tr>
<tr class="separator:a0eec00c1c43648dc914b4fb726d5bcc5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga15780f5c76a6e85e6a9d91dc6ca754bc"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__hardware__i2c.html#ga15780f5c76a6e85e6a9d91dc6ca754bc">I2C_NUM</a>(i2c)</td></tr>
<tr class="memdesc:ga15780f5c76a6e85e6a9d91dc6ca754bc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the I2C number for a I2C instance.  <a href="group__hardware__i2c.html#ga15780f5c76a6e85e6a9d91dc6ca754bc">More...</a><br /></td></tr>
<tr class="separator:ga15780f5c76a6e85e6a9d91dc6ca754bc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaaa18845e47b403a6a54008a776f56b46"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__hardware__i2c.html#gaaa18845e47b403a6a54008a776f56b46">I2C_INSTANCE</a>(num)</td></tr>
<tr class="memdesc:gaaa18845e47b403a6a54008a776f56b46"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the I2C instance with the given I2C number.  <a href="group__hardware__i2c.html#gaaa18845e47b403a6a54008a776f56b46">More...</a><br /></td></tr>
<tr class="separator:gaaa18845e47b403a6a54008a776f56b46"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga6e96753676145c21b2165f6fde8e0f2a"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__hardware__i2c.html#ga6e96753676145c21b2165f6fde8e0f2a">I2C_DREQ_NUM</a>(i2c,  is_tx)</td></tr>
<tr class="memdesc:ga6e96753676145c21b2165f6fde8e0f2a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the <a class="el" href="group__hardware__dma.html#ga8def0ea481095c94f3a0dd0b4fed999e">dreq_num_t</a> used for pacing DMA transfers to or from this I2C instance. If is_tx is true, then it is for transfers to the I2C instance else for transfers from the I2C instance.  <a href="group__hardware__i2c.html#ga6e96753676145c21b2165f6fde8e0f2a">More...</a><br /></td></tr>
<tr class="separator:ga6e96753676145c21b2165f6fde8e0f2a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1097488c8b489a829c2b2eb8b39e345f"><td class="memItemLeft" align="right" valign="top"><a id="a1097488c8b489a829c2b2eb8b39e345f" name="a1097488c8b489a829c2b2eb8b39e345f"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>i2c_hw_index</b>(i2c)&#160;&#160;&#160;<a class="el" href="group__hardware__i2c.html#gaae747755a45e2fbf96d60bfbc7837f5d">i2c_get_index</a>(i2c)</td></tr>
<tr class="separator:a1097488c8b489a829c2b2eb8b39e345f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="typedef-members" name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:ad8f335db926d38694712398d3e03f317"><td class="memItemLeft" align="right" valign="top"><a id="ad8f335db926d38694712398d3e03f317" name="ad8f335db926d38694712398d3e03f317"></a>
typedef struct <a class="el" href="structi2c__inst.html">i2c_inst</a>&#160;</td><td class="memItemRight" valign="bottom"><b>i2c_inst_t</b></td></tr>
<tr class="separator:ad8f335db926d38694712398d3e03f317"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:gad31793849a130033e94fa5b8e98a30a8"><td class="memItemLeft" align="right" valign="top">uint&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__hardware__i2c.html#gad31793849a130033e94fa5b8e98a30a8">i2c_init</a> (<a class="el" href="structi2c__inst.html">i2c_inst_t</a> *i2c, uint baudrate)</td></tr>
<tr class="memdesc:gad31793849a130033e94fa5b8e98a30a8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initialise the I2C HW block.  <a href="group__hardware__i2c.html#gad31793849a130033e94fa5b8e98a30a8">More...</a><br /></td></tr>
<tr class="separator:gad31793849a130033e94fa5b8e98a30a8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga2e2ac8f345157b0095fc463ac3e584ba"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__hardware__i2c.html#ga2e2ac8f345157b0095fc463ac3e584ba">i2c_deinit</a> (<a class="el" href="structi2c__inst.html">i2c_inst_t</a> *i2c)</td></tr>
<tr class="memdesc:ga2e2ac8f345157b0095fc463ac3e584ba"><td class="mdescLeft">&#160;</td><td class="mdescRight">Disable the I2C HW block.  <a href="group__hardware__i2c.html#ga2e2ac8f345157b0095fc463ac3e584ba">More...</a><br /></td></tr>
<tr class="separator:ga2e2ac8f345157b0095fc463ac3e584ba"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga615525cad9398b3ec37e8208523c73b4"><td class="memItemLeft" align="right" valign="top">uint&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__hardware__i2c.html#ga615525cad9398b3ec37e8208523c73b4">i2c_set_baudrate</a> (<a class="el" href="structi2c__inst.html">i2c_inst_t</a> *i2c, uint baudrate)</td></tr>
<tr class="memdesc:ga615525cad9398b3ec37e8208523c73b4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set I2C baudrate.  <a href="group__hardware__i2c.html#ga615525cad9398b3ec37e8208523c73b4">More...</a><br /></td></tr>
<tr class="separator:ga615525cad9398b3ec37e8208523c73b4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga42571b2db5d1ed0dc083385c230dc9e8"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__hardware__i2c.html#ga42571b2db5d1ed0dc083385c230dc9e8">i2c_set_slave_mode</a> (<a class="el" href="structi2c__inst.html">i2c_inst_t</a> *i2c, bool slave, uint8_t addr)</td></tr>
<tr class="memdesc:ga42571b2db5d1ed0dc083385c230dc9e8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set I2C port to slave mode.  <a href="group__hardware__i2c.html#ga42571b2db5d1ed0dc083385c230dc9e8">More...</a><br /></td></tr>
<tr class="separator:ga42571b2db5d1ed0dc083385c230dc9e8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaae747755a45e2fbf96d60bfbc7837f5d"><td class="memItemLeft" align="right" valign="top">static uint&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__hardware__i2c.html#gaae747755a45e2fbf96d60bfbc7837f5d">i2c_get_index</a> (<a class="el" href="structi2c__inst.html">i2c_inst_t</a> *i2c)</td></tr>
<tr class="memdesc:gaae747755a45e2fbf96d60bfbc7837f5d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert I2C instance to hardware instance number.  <a href="group__hardware__i2c.html#gaae747755a45e2fbf96d60bfbc7837f5d">More...</a><br /></td></tr>
<tr class="separator:gaae747755a45e2fbf96d60bfbc7837f5d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gafb868326e8b0bef077a98e1302b0ff9a"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="structi2c__hw__t.html">i2c_hw_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__hardware__i2c.html#gafb868326e8b0bef077a98e1302b0ff9a">i2c_get_hw</a> (<a class="el" href="structi2c__inst.html">i2c_inst_t</a> *i2c)</td></tr>
<tr class="memdesc:gafb868326e8b0bef077a98e1302b0ff9a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return pointer to structure containing i2c hardware registers.  <a href="group__hardware__i2c.html#gafb868326e8b0bef077a98e1302b0ff9a">More...</a><br /></td></tr>
<tr class="separator:gafb868326e8b0bef077a98e1302b0ff9a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga2a132ff74d7b816a6238037fa0e0c2c4"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="structi2c__inst.html">i2c_inst_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__hardware__i2c.html#ga2a132ff74d7b816a6238037fa0e0c2c4">i2c_get_instance</a> (uint num)</td></tr>
<tr class="memdesc:ga2a132ff74d7b816a6238037fa0e0c2c4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert I2C hardware instance number to I2C instance.  <a href="group__hardware__i2c.html#ga2a132ff74d7b816a6238037fa0e0c2c4">More...</a><br /></td></tr>
<tr class="separator:ga2a132ff74d7b816a6238037fa0e0c2c4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gafbad5cc392c9c22618ff9fe3b0f20ea5"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__hardware__i2c.html#gafbad5cc392c9c22618ff9fe3b0f20ea5">i2c_write_blocking_until</a> (<a class="el" href="structi2c__inst.html">i2c_inst_t</a> *i2c, uint8_t addr, const uint8_t *src, size_t len, bool nostop, <a class="el" href="group__timestamp.html#ga8b7f3d602cc053f05bacceeacc257ed8">absolute_time_t</a> until)</td></tr>
<tr class="memdesc:gafbad5cc392c9c22618ff9fe3b0f20ea5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Attempt to write specified number of bytes to address, blocking until the specified absolute time is reached.  <a href="group__hardware__i2c.html#gafbad5cc392c9c22618ff9fe3b0f20ea5">More...</a><br /></td></tr>
<tr class="separator:gafbad5cc392c9c22618ff9fe3b0f20ea5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga186c30fab0a661586493c8d51a493850"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__hardware__i2c.html#ga186c30fab0a661586493c8d51a493850">i2c_read_blocking_until</a> (<a class="el" href="structi2c__inst.html">i2c_inst_t</a> *i2c, uint8_t addr, uint8_t *dst, size_t len, bool nostop, <a class="el" href="group__timestamp.html#ga8b7f3d602cc053f05bacceeacc257ed8">absolute_time_t</a> until)</td></tr>
<tr class="memdesc:ga186c30fab0a661586493c8d51a493850"><td class="mdescLeft">&#160;</td><td class="mdescRight">Attempt to read specified number of bytes from address, blocking until the specified absolute time is reached.  <a href="group__hardware__i2c.html#ga186c30fab0a661586493c8d51a493850">More...</a><br /></td></tr>
<tr class="separator:ga186c30fab0a661586493c8d51a493850"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga0abb49ca0282530c2655f188b72eb653"><td class="memItemLeft" align="right" valign="top">static int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__hardware__i2c.html#ga0abb49ca0282530c2655f188b72eb653">i2c_write_timeout_us</a> (<a class="el" href="structi2c__inst.html">i2c_inst_t</a> *i2c, uint8_t addr, const uint8_t *src, size_t len, bool nostop, uint timeout_us)</td></tr>
<tr class="memdesc:ga0abb49ca0282530c2655f188b72eb653"><td class="mdescLeft">&#160;</td><td class="mdescRight">Attempt to write specified number of bytes to address, with timeout.  <a href="group__hardware__i2c.html#ga0abb49ca0282530c2655f188b72eb653">More...</a><br /></td></tr>
<tr class="separator:ga0abb49ca0282530c2655f188b72eb653"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a38e4495bdf2d6a9a8ed433762d76e5b5"><td class="memItemLeft" align="right" valign="top"><a id="a38e4495bdf2d6a9a8ed433762d76e5b5" name="a38e4495bdf2d6a9a8ed433762d76e5b5"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>i2c_write_timeout_per_char_us</b> (<a class="el" href="structi2c__inst.html">i2c_inst_t</a> *i2c, uint8_t addr, const uint8_t *src, size_t len, bool nostop, uint timeout_per_char_us)</td></tr>
<tr class="separator:a38e4495bdf2d6a9a8ed433762d76e5b5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga9662f16f2e0def852f8fc051e695528d"><td class="memItemLeft" align="right" valign="top">static int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__hardware__i2c.html#ga9662f16f2e0def852f8fc051e695528d">i2c_read_timeout_us</a> (<a class="el" href="structi2c__inst.html">i2c_inst_t</a> *i2c, uint8_t addr, uint8_t *dst, size_t len, bool nostop, uint timeout_us)</td></tr>
<tr class="memdesc:ga9662f16f2e0def852f8fc051e695528d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Attempt to read specified number of bytes from address, with timeout.  <a href="group__hardware__i2c.html#ga9662f16f2e0def852f8fc051e695528d">More...</a><br /></td></tr>
<tr class="separator:ga9662f16f2e0def852f8fc051e695528d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af90defa2d0030204788fd1e9602ab1f8"><td class="memItemLeft" align="right" valign="top"><a id="af90defa2d0030204788fd1e9602ab1f8" name="af90defa2d0030204788fd1e9602ab1f8"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>i2c_read_timeout_per_char_us</b> (<a class="el" href="structi2c__inst.html">i2c_inst_t</a> *i2c, uint8_t addr, uint8_t *dst, size_t len, bool nostop, uint timeout_per_char_us)</td></tr>
<tr class="separator:af90defa2d0030204788fd1e9602ab1f8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga5149e9af84926fa19db6677691ab2900"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__hardware__i2c.html#ga5149e9af84926fa19db6677691ab2900">i2c_write_blocking</a> (<a class="el" href="structi2c__inst.html">i2c_inst_t</a> *i2c, uint8_t addr, const uint8_t *src, size_t len, bool nostop)</td></tr>
<tr class="memdesc:ga5149e9af84926fa19db6677691ab2900"><td class="mdescLeft">&#160;</td><td class="mdescRight">Attempt to write specified number of bytes to address, blocking.  <a href="group__hardware__i2c.html#ga5149e9af84926fa19db6677691ab2900">More...</a><br /></td></tr>
<tr class="separator:ga5149e9af84926fa19db6677691ab2900"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaba4ea440285edec58eba507308c568c6"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__hardware__i2c.html#gaba4ea440285edec58eba507308c568c6">i2c_read_blocking</a> (<a class="el" href="structi2c__inst.html">i2c_inst_t</a> *i2c, uint8_t addr, uint8_t *dst, size_t len, bool nostop)</td></tr>
<tr class="memdesc:gaba4ea440285edec58eba507308c568c6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Attempt to read specified number of bytes from address, blocking.  <a href="group__hardware__i2c.html#gaba4ea440285edec58eba507308c568c6">More...</a><br /></td></tr>
<tr class="separator:gaba4ea440285edec58eba507308c568c6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga93f40022189e591521dd0ae5e29708ff"><td class="memItemLeft" align="right" valign="top">static size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__hardware__i2c.html#ga93f40022189e591521dd0ae5e29708ff">i2c_get_write_available</a> (<a class="el" href="structi2c__inst.html">i2c_inst_t</a> *i2c)</td></tr>
<tr class="memdesc:ga93f40022189e591521dd0ae5e29708ff"><td class="mdescLeft">&#160;</td><td class="mdescRight">Determine non-blocking write space available.  <a href="group__hardware__i2c.html#ga93f40022189e591521dd0ae5e29708ff">More...</a><br /></td></tr>
<tr class="separator:ga93f40022189e591521dd0ae5e29708ff"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga5df361f77f110bbc2b63baa999507bde"><td class="memItemLeft" align="right" valign="top">static size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__hardware__i2c.html#ga5df361f77f110bbc2b63baa999507bde">i2c_get_read_available</a> (<a class="el" href="structi2c__inst.html">i2c_inst_t</a> *i2c)</td></tr>
<tr class="memdesc:ga5df361f77f110bbc2b63baa999507bde"><td class="mdescLeft">&#160;</td><td class="mdescRight">Determine number of bytes received.  <a href="group__hardware__i2c.html#ga5df361f77f110bbc2b63baa999507bde">More...</a><br /></td></tr>
<tr class="separator:ga5df361f77f110bbc2b63baa999507bde"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf33250d48e1ad099b1ade910fa97e38d"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__hardware__i2c.html#gaf33250d48e1ad099b1ade910fa97e38d">i2c_write_raw_blocking</a> (<a class="el" href="structi2c__inst.html">i2c_inst_t</a> *i2c, const uint8_t *src, size_t len)</td></tr>
<tr class="memdesc:gaf33250d48e1ad099b1ade910fa97e38d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Write direct to TX FIFO.  <a href="group__hardware__i2c.html#gaf33250d48e1ad099b1ade910fa97e38d">More...</a><br /></td></tr>
<tr class="separator:gaf33250d48e1ad099b1ade910fa97e38d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gacb6879852dedc00403f8c345e6d64611"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__hardware__i2c.html#gacb6879852dedc00403f8c345e6d64611">i2c_read_raw_blocking</a> (<a class="el" href="structi2c__inst.html">i2c_inst_t</a> *i2c, uint8_t *dst, size_t len)</td></tr>
<tr class="memdesc:gacb6879852dedc00403f8c345e6d64611"><td class="mdescLeft">&#160;</td><td class="mdescRight">Read direct from RX FIFO.  <a href="group__hardware__i2c.html#gacb6879852dedc00403f8c345e6d64611">More...</a><br /></td></tr>
<tr class="separator:gacb6879852dedc00403f8c345e6d64611"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gab37f59a13576235e8bed4fffc4bc4361"><td class="memItemLeft" align="right" valign="top">static uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__hardware__i2c.html#gab37f59a13576235e8bed4fffc4bc4361">i2c_read_byte_raw</a> (<a class="el" href="structi2c__inst.html">i2c_inst_t</a> *i2c)</td></tr>
<tr class="memdesc:gab37f59a13576235e8bed4fffc4bc4361"><td class="mdescLeft">&#160;</td><td class="mdescRight">Pop a byte from I2C Rx FIFO.  <a href="group__hardware__i2c.html#gab37f59a13576235e8bed4fffc4bc4361">More...</a><br /></td></tr>
<tr class="separator:gab37f59a13576235e8bed4fffc4bc4361"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga966547dafbfd2bcb2016c132f26767f8"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__hardware__i2c.html#ga966547dafbfd2bcb2016c132f26767f8">i2c_write_byte_raw</a> (<a class="el" href="structi2c__inst.html">i2c_inst_t</a> *i2c, uint8_t value)</td></tr>
<tr class="memdesc:ga966547dafbfd2bcb2016c132f26767f8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Push a byte into I2C Tx FIFO.  <a href="group__hardware__i2c.html#ga966547dafbfd2bcb2016c132f26767f8">More...</a><br /></td></tr>
<tr class="separator:ga966547dafbfd2bcb2016c132f26767f8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gacce469d1b8f8dc9548d1932c5838d9d9"><td class="memItemLeft" align="right" valign="top">static uint&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__hardware__i2c.html#gacce469d1b8f8dc9548d1932c5838d9d9">i2c_get_dreq</a> (<a class="el" href="structi2c__inst.html">i2c_inst_t</a> *i2c, bool is_tx)</td></tr>
<tr class="memdesc:gacce469d1b8f8dc9548d1932c5838d9d9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the DREQ to use for pacing transfers to/from a particular I2C instance.  <a href="group__hardware__i2c.html#gacce469d1b8f8dc9548d1932c5838d9d9">More...</a><br /></td></tr>
<tr class="separator:gacce469d1b8f8dc9548d1932c5838d9d9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a46204d38a512926541fd8bac2b62c720"><td class="memItemLeft" align="right" valign="top"><a id="a46204d38a512926541fd8bac2b62c720" name="a46204d38a512926541fd8bac2b62c720"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>i2c0</b>&#160;&#160;&#160;(&amp;<a class="el" href="group__hardware__i2c.html#ga56c7844696c095a3ad088100df011fd2">i2c0_inst</a>)</td></tr>
<tr class="memdesc:a46204d38a512926541fd8bac2b62c720"><td class="mdescLeft">&#160;</td><td class="mdescRight">Identifier for I2C HW Block 0. <br /></td></tr>
<tr class="separator:a46204d38a512926541fd8bac2b62c720"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a87659b485d9e76dfc3bcef208ac4b573"><td class="memItemLeft" align="right" valign="top"><a id="a87659b485d9e76dfc3bcef208ac4b573" name="a87659b485d9e76dfc3bcef208ac4b573"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>i2c1</b>&#160;&#160;&#160;(&amp;i2c1_inst)</td></tr>
<tr class="memdesc:a87659b485d9e76dfc3bcef208ac4b573"><td class="mdescLeft">&#160;</td><td class="mdescRight">Identifier for I2C HW Block 1. <br /></td></tr>
<tr class="separator:a87659b485d9e76dfc3bcef208ac4b573"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga56c7844696c095a3ad088100df011fd2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structi2c__inst.html">i2c_inst_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__hardware__i2c.html#ga56c7844696c095a3ad088100df011fd2">i2c0_inst</a></td></tr>
<tr class="separator:ga56c7844696c095a3ad088100df011fd2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a666d7f08887fd98b5050bce339eb6f0a"><td class="memItemLeft" align="right" valign="top"><a id="a666d7f08887fd98b5050bce339eb6f0a" name="a666d7f08887fd98b5050bce339eb6f0a"></a>
<a class="el" href="structi2c__inst.html">i2c_inst_t</a>&#160;</td><td class="memItemRight" valign="bottom"><b>i2c1_inst</b></td></tr>
<tr class="separator:a666d7f08887fd98b5050bce339eb6f0a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
</div><!-- contents -->
</div><!-- doc-content -->

	<script src="main.js"></script>
</body>
</html>
